package com.jason.www.pubsub.event;

import org.springframework.context.ApplicationEvent;


public class SendEmailEvent extends ApplicationEvent {
    private static final long serialVersionUID = -4631143716608615460L;

    private String msg;

    public SendEmailEvent(Object source) {
        super(source);
    }

    public String getMsg() {
        return msg;
    }

    public SendEmailEvent setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public String getUserName(){
        return (String) super.source;
    }
}
